package com.wangrui.controller;

import com.sun.deploy.net.HttpResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;


@Controller
public class RouterController {

    @RequestMapping({"/","/index","/toLogin"})
    public String index(){
        return "login";
    }

    @RequestMapping({"/main"})
    public String main() {
        return "main/main";

    }
/*    @RequestMapping({"/save"})
    public String save(){
        return "user/save";
    }*/

}
